* {
	box-sizing: border-box;
}

main {
	overflow: unset !important;
	padding: 0.5rem 0 1rem 0;
}

.pageBar {
	background-color: #FCD6C3;
	border-radius: 1rem;
	display: grid;
	gap: 0.5rem;
	height: fit-content;
	margin: 1.5rem auto 0 auto;
	padding: 0.5rem;
	position: relative;
	width: 80%;
}

.pageBar .selectDiv {
	height: 2rem;
	margin: 0 auto;
	width: 8rem;
}

.pageBar .selectDiv .numberPerPageLabel svg {
	height: 2rem;
}

.pageBarPageButtons {
	display: flex;
	flex-wrap: wrap;
	gap: 0.625rem;
	height: fit-content;
	justify-content: center;
}

.pageBarPageButtonsButton {
	background-color: #BDBDBD;
	border: none;
	border-radius: 0.5rem;
	color: #000000;
	cursor: pointer;
	font-family: Raleway-Regular;
	font-size: 1rem;
	height: 2rem;
	outline: none;
	transition: background-color 0.3s linear;
	width: 2.5rem;
}

.pageBarPageButtonsButton:hover,
.pageBarPageButtonsButton:focus {
	background-color: #888888;
}

.pageBarPageButtonsButton[data-page-number='0'] {
	order: -1;
}

.pageBarPageButtonsButton[data-page-number='-1'] {
	order: 9999;
}

.pageBarPageButtonsButtonCurrent {
	background-color: #666666;
	color: #FFFFFF;
}

.pageBarSelectNumber {
	position: absolute;
	right: 2rem;
	width: 8rem;
}

.searchBar {
	background-color: #FCD6C3;
	border-radius: 1rem;
	display: flex;
	flex-direction: column;
	min-height: 2.75rem;
	margin: 0rem auto 1rem auto;
	/* transition: min-height 0.3s linear; */
	width: 80%;
}

.searchBar.open {
	min-height: 5rem;
	height: auto;
}

.searchBar.open::after {
	height: fit-content
}

.searchBar.open button.searchBarGeneralItem > svg {
	rotate: -90deg;
}

.searchBar.open .searchBarFilters {
	border-top-width: 0.2rem;
	display: grid;
	max-height: 100%;
	padding: 1rem 0.75rem;
	/* transition: border-top-width 0.2s ease-out, max-height 0.3s ease-out, padding 0.3s ease-out; */
}

.searchBarFilters {
	align-content: center;
	border-color: #000000;
	border-top-style: solid;
	border-top-width: 0;
	display: none;
	gap: 0.5rem;
	grid-auto-flow: row;
	grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr));
	height: 100%;
	margin: 0 auto;
	max-height: 0;
	overflow: hidden;
	padding: 0 1rem;
	/* transition: max-height 0.3s ease-out, border-top-width 0s ease-out, padding 0.3s ease-out; */
	width: 100%;
}

.searchBarFiltersPostcode {
	align-items: center;
	/* display: flex; */
	display: none !important;
	font-family: 'Raleway-Regular';
	font-size: 1rem;
	gap: 0.3rem;
	height: 1.875rem;
	position: relative;
}

.searchBarFiltersPostcode input {
	background-color: #D9D9D9;
	border: none;
	border-radius: 0.5rem;
	color: #000000;
	font-family: inherit;
	height: 100%;
	outline: none;
	padding: 0.3rem;
	transition: all 0.2s linear;
	width: 100%;
}

.searchBarFiltersPostcode input::placeholder {
	color: #000000;
	transition: color 0.2s linear;
}

.searchBarFiltersPostcode input:focus {
	background-color: #666666;
	color: #FFFFFF;
}

.searchBarFiltersPostcode input:focus::placeholder {
	color: #FFFFFF;
}

.searchBarFiltersPostcode button {
	background-color: unset;
	border: unset;
	cursor: pointer;
	font-family: 'Raleway-Bold';
	line-height: 1.875rem;
	outline: none;
	padding: 0;
	position: absolute;
	right: 0.5rem;
}

.searchBarFiltersPostcode button:hover,
.searchBarFiltersPostcode button:focus {
	color: #AAAAAA;
}

.searchBarFilters .selectDiv {
	height: 1.875rem;
	margin-bottom: 7rem;
	display: none; /* TODO: REMOVE THIS */
}

.searchBarFilters .selectDiv .distanceLabel {
	line-height: 1.875rem;
}

.searchBarFilters .selectDiv .distanceLabel svg {
	height: 1.875rem;
}

.searchBarFiltersDistance {
	grid-column: 1 / span 2;
}

.searchBarGeneral {
	align-items: center;
	display: flex;
	flex-grow: 1;
	gap: 1rem;
	height: 2.75rem;
	max-height: 2.75rem;
	padding: 0 1rem;
}

.searchBarGeneralItem {
	align-items: center;
	display: flex;
	flex-grow: 1;
	font-family: 'Raleway-Regular';
	height: 100%;
}

.searchBarGeneralItem > input {
	background-color: #BDBDBD;
	border: none;
	border-radius: 0.5rem;
	color: #000000;
	font-size: 1rem;
	padding: 0.25rem 0 0.25rem 0.3rem;
	transition: background-color 0.3s linear, color 0.2s linear;
	width: 100%;
}

.searchBarGeneralItem > input::placeholder {
	color: #000000;
	transition: color 0.2s linear;
}

.searchBarGeneralItem > input:focus {
	background-color: #888888;
	color: #FFFFFF;
	outline: none;
}

.searchBarGeneralItem > input:focus::placeholder {
	color: #FFFFFF;
}

button.searchBarGeneralItem {
	background-color: unset;
	border: none;
	cursor: pointer;
	flex-grow: unset;
	font-size: 1.25rem;
	gap: 0.3rem;
	outline: none;
}

button.searchBarGeneralItem:hover,
button.searchBarGeneralItem:focus {
	color: #888888;
	fill: #888888;
}

button.searchBarGeneralItem svg {
	height: 0.8rem;
	rotate: 0deg;
	transition: rotate 0.25s linear;
}

.searchResults { /*! MOBILE DONE */
	display: flex;
	flex-direction: column;
	gap: 5vw;
	margin: 0 auto;
	width: 80%;
}

.searchResultsItem { /*! MOBILE DONE */
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	gap: 2vw;
	justify-content: center;
}

.searchResultsItemInfo { /*! MOBILE DONE */
	display: flex;
	flex-direction: column;
	flex-grow: 1;
	font-size: 1rem;
	gap: 0.4rem;
}

.searchResultsItemInfo > h3 { /*! MOBILE DONE */
	font-family: 'Raleway-Bold';
	font-size: 2rem;
	margin: 0;
}

.searchResultsItemInfo > p { /*! MOBILE DONE */
	font-family: 'Raleway-Regular';
	/* font-family: 'Raleway-RegularTest'; */
	margin: 0;
}

.searchResultsItemInfoButton { /*! MOBILE DONE */
	background-color: unset;
	border: #000000 0.4rem double;
	color: #000000;
	cursor: pointer;
	font-family: 'Raleway-SemiBold';
	font-size: inherit;
	outline: none;
	padding: 0.3rem 1rem;
	text-decoration: none;
	transition: border-color 0.15s linear, color 0.15s linear, transform 0.2s linear;
	width: fit-content;
}

.searchResultsItemInfoButton:hover,
.searchResultsItemInfoButton:focus { /*! MOBLIE DONE */
	border-color: #FF752F;
	color: #FF752F;
}

.searchResultsItemNoResult {
	font-family: 'Raleway-Bold';
	font-size: 2rem;
	padding: 6rem 1rem;
}

.searchResultsItemPicture { /*! MOBILE DONE */
	position: relative;
}

.searchResultsItemPicture > img { /*! MOBILE DONE */
	max-width: 100%;
	width: 100%;
}

.searchResultsItemPictureLocation { /*! MOBILE DONE */
	background-color: #CCCCCC;
	font-size: 1rem;
	font-family: 'Raleway-Regular';
	padding: 0.3rem 1rem;
	position: absolute;
	right: 0;
	top: 0;
	width: fit-content;
}

@media only all and (min-width: 600px) {
	.pageBar .selectDiv {
		height: 1.625rem;
	}

	.pageBar .selectDiv .numberPerPageLabel svg {
		height: 1.625rem;
	}

	.pageBarPageButtons {
		flex-wrap: nowrap;
		height: 1.625rem;
	}

	.pageBarPageButtonsButton {
		height: 100%;
	}

	.searchBar {
		margin: 0 auto 1rem auto;
		width: 75%;
	}

	.searchResults {
		flex-direction: row;
		flex-wrap: wrap;
		gap: 3vw;
		justify-content: center;
		width: 75%;
	}

	.searchResultsItemInfo {
		font-size: 1.25rem;
		gap: unset;
		justify-content: space-between;
	}

	.searchResultsItemInfo > h3 {
		font-size: 2.5rem;
		margin: 0 0 0.75rem 0;
	}

	.searchResultsItemInfo > p {
		margin-bottom: 1rem;
	}

	.searchResultsItemInfoButton {
		border: #000000 0.5rem double;
		margin: auto 2rem 1rem auto;
		padding: 0.45rem 1.35rem;
	}

	/* .searchResultsItemPicture {
		max-width: 35%;
	} */

	.searchResultsItemPictureLocation {
		font-size: 1rem;
		padding: 0.6rem 1rem;
	}
}

@media only all and (min-width: 900px) {
	.pageBar {
		align-items: center;
		display: flex;
		height: 2.75rem;
		justify-content: center;
		padding: 0;
		width: calc(80% - 7.8rem);
	}

	.pageBar .selectDiv {
		margin: 0;
		position: absolute;
		right: 2rem;
	}

	.searchBar {
		width: calc(80% - 7.8rem);
	}

	.searchResults {
		width: calc(80% - 7.8rem);
	}

	.searchResultsItem {
		flex-direction: row;
		max-width: 980px;
	}

	.searchResultsItemInfo > p {
		margin-bottom: 0;
	}

	.searchResultsItemPicture > img { /*! MOBILE DONE */
		max-width: unset;
		width: unset;
	}
}
